<?php

require_once('inc.config.php');

$useTemplate   = 'renthouse_list.html';

$page = new QuickSkin ($useTemplate );

$arr = $_REQUEST;

template_ini($page);
if($_GET["idxs"]==1){
	$arr["s_price"] = $arr["r_price"];
	$arr["s_square"] = $arr["r_square"];
	$arr["s_floor"] = $arr["r_floor"];
	$arr["s_style"] = $arr["r_style"];
	$arr["s_prop"] = $arr["r_prop"];
	$arr["s_lx"] = $arr["r_lx"];
	$arr["s_isfull"] = $arr["r_isfull"];
	$arr["s_plaza"] = $arr["r_plaza"];
}
//搜索条件
$condition = array(
	"price" => $arr["s_price"],
	"square" => $arr["s_square"],
	"floor" => $arr["s_floor"],
	"plaza"  => $arr["s_plaza"],
	"decoration" => $arr["s_decoration"],
	"style" => $arr["s_style"],
	"prop" => $arr["s_prop"],
	"lx" => $arr["s_lx"],
	"area" => $arr["s_area"],
	"isfull" =>$arr["s_isfull"],
	"ispublic" => 1
);


if($arr["s_type"]==""||!isset($arr["s_type"])){$arr["s_type"]=1;}
if($arr["s_page"]==""||!isset($arr["s_page"])){$arr["s_page"]=1;}

$page->assign("indexcls" , "bfont");

$goldlist = $myAgent->getGoldenList();
$result = $myHouse->getSearchRentList($condition , $arr["s_type"] , $arr["s_page"]);
$totalnum = $myHouse->getSearchNum2($condition);
//$totalnum = $myHouse->getSearchPage($condition , __search_shouse_num__);
$tp = ceil($totalnum/__search_rhouse_num__);
//$pl = $myHouse->getSearchPlaza();
$clist = $myHouse->getCollection();


$page->assign("goldlist" , $goldlist);

$page->assign("selllist" , $result);
$page->assign("total" , $totalnum);
$page->assign("totalpage" ,$tp);
$page->assign("clist" , $clist);

$page->assign($arr);
$page->assign("indexcls" , "nv_current");
$page->output();


ob_end_flush();

?>